<%@ page contentType="text/html;charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.eqs.*" %>

<%@ include file="../init_include.jsp" %>
<%
	String message = "";
  if(request.getParameter("id")!=null)
	{
		String iditem=request.getParameter("id").trim();
		while(iditem.endsWith(","))
			iditem=iditem.substring(0,iditem.length()-1);
    DownFileApp newDownFileApp = new DownFileApp();
		if(newDownFileApp.deleteDownFiles(dbi,iditem)) {
		message = Language.getNameByCode("sys.deletesuccessful","Delete data successfully!");
	%>
	<script Language="JavaScript" src="../script/Ion_Show.js"></script> 
	<script language="javascript">
		if(alertmode)	
			alert("<%=message%>");
		closewindow(0);
	</script>	
	<%	
		} else {
			message = Language.getNameByCode("sys.deletefailed","Delete data fail!");
	%>
	<script language="javascript">
		alert("<%=message%>");
		closewindow(0);
	</script>	
	<%	
		}
	}
%>
<%@ include file="../init_free.jsp" %>
